package org.jeecg.cn.edu.scau.vm.container.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Builder
@TableName("vm_container_usage")
public class VmContainerUsage {
    /**
     * 容器使用情况
     */
    @TableId(type = IdType.AUTO)
    private String id;

    /**
     * 归属于哪个用户
     */
    @TableField("user_id")
    private String userId;

    /**
     * 上次发放机时的时间
     */
    @TableField("last_distribution_time")
    private LocalDateTime lastDistributionTime;

    /**
     * 剩余机时(分钟)
     */
    @TableField("remaining_time")
    private Integer remainIngTime;

    /**
     * 剩余可用GPU数量
     */
    @TableField("remaining_gpu_card")
    private Integer remainGpuCardNumber;


}
